package cn.chengpengper.seckill.stock.application.model.command;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author chengpeng.hu
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class SeckillStockBucketGoodsCommand implements Serializable {
    private static final long serialVersionUID = -3277417752771378782L;
    //用户id
    private Long userId;
    //商品id
    private Long goodsId;

    public boolean isEmpty(){
        return this.userId == null
                || this.goodsId == null;
    }
}

